<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<title></title>
	<link rel="stylesheet" href="../css/gerenziliao.css" >
	<!--<link rel="stylesheet" href="../css/mui.min.css">-->
	<script type="text/javascript">
		document.addEventListener('plusready', function () {
			//console.log("所有plus api都应该在此事件发生后调用，否则会出现plus is undefined。"	
		});
	</script>
	
	<link rel="stylesheet" href="../css/gerenziliao.css">
</head>

<body>
	<div class="wrapper">
		<div class="header">
			<div class="arrow">
				<img src="../img/arrow.png" alt="">
			</div>
			<div class="con">个人资料</div>
			<div class="dot">
				<img src="../img/dot.png" alt="">
			</div>
		</div>
		<div class="wrapper-content">
			<ul>
				<li>推荐码</li>
				<li id="tuijianma"></li>
				<li></li>
			</ul>
			<ul class="nicheng">
				<li>昵称</li>
				<li id="username"></li>
				<li>
					<img src="../img/right-arrow.png" alt="">
				</li>
			</ul>
			<ul class="renzheng">
				<li>实名认证</li>
				<li id="verif">进行认证</li>
				<li>
					<img src="../img/right-arrow.png" alt="">
				</li>
			</ul>
		</div>
		
	</div>
	
	<script type="text/javascript" src="../js/zepto.js"></script>
	<script src= "../js/jquery.min.js"></script>
	<script src="../js/touch.min.js"></script>
	<script>
		$.ajax({
			type: "GET",
			url: `${localStorage.top}api/UserCenter/realAuth?TOKEN=${localStorage.token}`,
			success: function(data){
				if(data.code == localStorage.success){
					$("#verif").html("")
					console.log(data)
					console.log(111)
					$(".renzheng").on("tap",function(){
						window.location.href = "renzhengchenggong.html"
						localStorage.status = data.data.status;
						localStorage.IDFront = data.data.front.images;
						localStorage.IDBack = data.data.back.images;
					})
				}else{
					$(".renzheng").on("tap",function(){
						window.location.href = "shimingrenzheng.html"
					})
				}
			}
		})



		$(".arrow").on("tap",function(){
		window.location.href = "index.html"
	})
		$(".nicheng").on("tap",function(){
			window.location.href = "xiugainicheng.html"
		})
	
		$("#username").html(localStorage.nickname);
		$("#tuijianma").html(localStorage.tuijianma)
		console.log(localStorage.nickname);
		console.log(localStorage.tuijianma);
		
		
	</script>
</body>

</html>
